#pragma once

#define u64AddOverflow(v1, v2)		((v1 + v2) < v2)
#define u32AddOverflow(v1, v2)		((v1 + v2) < v2)

#define READ_FLAG_NULL						0x00000000
#define READ_FLAG_FORWARD					0x00000001
#define READ_FLAG_BACKWARD					0x00000002
#define READ_FLAG_OVERLAPPED				0x00000004

#define READ_FLAG_POOL						0x01000000
#define READ_FLAG_MAPPING					0x02000000
#define READ_FLAG_DELETE_TEMP_FILE			0x04000000

enum _BIN_FILE_RESULT
{
	BIN_FILE_SUCCESS = 1,
	BIN_FILE_END = 2,
	BIN_FILE_ERROR = 0xffffffff
};